package com.theaf.basemodule.common.model;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@ApiModel("扩展数据组,标识组号唯一")
@Entity
@Table(name = "sys_ex_group")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysExGroup {
    @Id
    @Column(name = "id")
    private long id;
    @Column(name = "state")
    private Integer state;
    @Column(name = "order_no")
    private Integer orderNo;
    @ManyToOne
    @JoinColumn(name="pid")
    private SysExGroup parent;
    @Column(name = "ppath")
    private String parentPath;
    public SysExGroup(long id){
        this.id = id;
    }
}
